package com.oo.polymorphic_4.animal;

/**
 * Dog--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 16:39
 **/
public class Dog extends Animal {
    public Dog() {
    }

    public Dog(String name, String color, int age) {
        super(name, color, age);
    }

    @Override
    public void breed() {
        System.out.println("名称：" + this.getName()
        +"\n毛色："+this.getColor()
        +"\n年龄："+this.getAge()
        +"\n注意事项");
    }
}
